package a.f.n;

import a.c.e;
import a.c.j;
import a.c.z;
import a.d.f;
import a.f.o;

import java.util.Comparator;

public class y
  implements bb
{
  private double g = 30.0D;
  private double h = 30.0D;
  public static boolean i;
  
  public double b()
  {
    return this.h;
  }
  
  public void a(double paramDouble)
  {
    this.h = paramDouble;
  }
  
  public double c()
  {
    return this.g;
  }
  
  public void b(double paramDouble)
  {
    this.g = paramDouble;
  }
  
  public void a(e parame, j paramj)
  {
    boolean bool = k.m;
    a.c.d locald = parame.h();
    do
    {
      if (locald == null) {
        break;
      }
      e locale = locald.f();
      paramj.a(locale, 0);
      locald = locald.i();
    } while (!bool);
  }
  
  public Comparator d()
  {
    return new kb();
  }
  
  public d.a_ a(a.c.k paramk1, a.c.k paramk2, o paramo, e parame, byte paramByte)
  {
    boolean bool2 = k.n;
    boolean bool1 = k.m;
    d.a_ locala_1 = (d.a_)paramk1.get(parame);
    if (parame.e() == 0) {
      return locala_1;
    }
    f localf1 = new f(0.0D);
    f localf2 = new f(0.0D);
    double d1 = this.g;
    double d2 = 1.7976931348623157E+308D;
    a.c.d locald1 = parame.h();
    do
    {
      if (locald1 == null) {
        break;
      }
      e locale1 = locald1.f();
      paramo.b(locald1, new z());
      d.a_ locala_2 = (d.a_)paramk2.get(locale1);
      double d5 = locala_2.a(2).f(localf1);
      locala_2.b(0.0D, d5);
      double d7 = localf2.f(locala_2.a(3));
      double d9 = locala_2.c() - localf2.d();
      locala_2.b(-(Math.min(d7, d9) - d1), 0.0D);
      localf2.d(locala_2.a(1));
      localf2.d(new f(-1.797693134862316E+308D, 20.0D, locala_2.c()));
      if (!bool2)
      {
        if (bool1) {
          break label247;
        }
        d2 = Math.min(d2, locala_2.h());
        locald1 = locald1.i();
      }
    } while (!bool1);
    label247:
    double d3 = localf2.d();
    double d4 = (d3 + d1) * 0.5D;
    double d6 = paramo.m(parame);
    double d8 = locala_1.j();
    locala_1.b(d4 - d6, d2 - d8 - this.h);
    d8 += d2 - d8 - this.h;
    double d10 = d2 - this.h * 0.5D;
    a.c.d locald2 = parame.h();
    if (locald2 != null) {}
    while (bool2)
    {
      e locale2 = locald2.f();
      d.a_ locala_3 = (d.a_)paramk2.get(locale2);
      locala_3.a(locala_3.c(), locala_3.d(), locala_3.c(), d10);
      locala_3.a(locala_3.c(), d10);
      locala_3.a(locala_3.c(), locala_3.d(), paramo.r(locald2).a, d10);
      locala_3.a(paramo.r(locald2).a, d10);
      locala_3.a(paramo.e(locald2));
      if (bool2) {
        break label708;
      }
      locala_1.a(locala_3);
      locald2 = locald2.i();
      if (bool1) {
        break label706;
      }
      if (!bool1) {
        break;
      }
    }
    if ((bool2) || (parame.d() > 0))
    {
      if (!bool2) {}
      switch (paramByte)
      {
      case -2: 
      case -1: 
      case 0: 
      default: 
        if (!bool2) {
          if (!bool1) {
            break label706;
          }
        }
      case 1: 
        locala_1.a(locala_1.c(), locala_1.h() - c());
        locala_1.a(locala_1.i(), locala_1.d());
        if (bool2) {
          break label708;
        }
        locala_1.e();
        if (!bool1) {
          break label706;
        }
      case 3: 
        locala_1.a(locala_1.c(), locala_1.h() - c());
        locala_1.a(locala_1.g(), locala_1.d());
        if (bool2) {
          break label708;
        }
        locala_1.e();
        if (!bool1) {
          break label706;
        }
      }
      locala_1.a(locala_1.c(), locala_1.h() - c());
      locala_1.a(locala_1.g() - c(), locala_1.d());
      locala_1.a(locala_1.c(), locala_1.j());
      locala_1.e();
    }
    label706:
    label708:
    return locala_1;
  }
  
  public ib a(d paramd, o paramo, e parame)
  {
    return null;
  }
  
  public Comparator a()
  {
    return d();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.n.y

 * JD-Core Version:    0.7.0.1

 */